#pragma once

#include "bsp_delay.h"

typedef struct {
    uint8_t mode;
    uint8_t btn1;
    uint8_t btn2;
    int16_t RJoy_LR;
    int16_t RJoy_UD;
    int16_t LJoy_LR;
    int16_t LJoy_UD;
} JOYSTICK_TypeDef;



void AX_PS2_Init(void);

static uint8_t PS2_ReadWriteByte(uint8_t cmd);

void AX_PS2_ScanKey(JOYSTICK_TypeDef* JoystickStruct);

void Remote_control();